package com.enjoyor.health.HGPT.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 对话-用户对话记录
 * </p>
 *
 * @author enjoyor
 * @since 2023-10-18
 */
@TableName("dialog_record")
@ApiModel(value = "DialogRecord对象", description = "对话-用户对话记录")
public class DialogRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("对话id")
    private String id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("对话名称")
    private String name;

    @ApiModelProperty("对话开始时间")
    private LocalDateTime beginTime;

    @ApiModelProperty("对话结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty("状态，1-有效数据，2-已删除")
    private int state;

    @ApiModelProperty("入库时间")
    private LocalDateTime storageTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(LocalDateTime beginTime) {
        this.beginTime = beginTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public LocalDateTime getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(LocalDateTime storageTime) {
        this.storageTime = storageTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "DialogRecord{" +
            "id = " + id +
            ", userId = " + userId +
            ", name = " + name +
            ", beginTime = " + beginTime +
            ", endTime = " + endTime +
            ", state = " + state +
            ", storageTime = " + storageTime +
            ", updateTime = " + updateTime +
        "}";
    }
}
